package com.zb.dao;

import com.zb.model.TOrder;
import com.zb.model.TOrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderMapper {

	public List<TOrder> selectorder(@Param("userid")String userid);
	
	public List<TOrder> getAllOrder();
	
	public List<TOrder> getOrderByTime(@Param("dateBegin")Date dateBegin,@Param("dateEnd")Date dateEnd);
	
	public List<TOrderDetail> selectorderDetail(@Param("orderId")String orderId);
	
	public double getOrderSale(@Param("orderId")String orderId);
	
	public double getOrderProfit(@Param("orderId")String orderId);
	
	public boolean qxorder(@Param("orderid")String orderid);
	
	public boolean addorder(@Param("torder")TOrder torder);
	
	public boolean reorderDetail(@Param("orderid")String orderid,@Param("newStatus")String newStatus);
	
	public boolean addorderDetail(@Param("tod")TOrderDetail tod);
	
}
